package org.example.y25.m3;

import java.util.Scanner;

public class lanqiao_19724 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int q = scanner.nextInt();
        int[] arr = new int[5];
        for (int i = 0;i < q;i++){
            int a_2 = scanner.nextInt();
            int a_3 = scanner.nextInt();
            int a_4 = scanner.nextInt();
            int b_4 = scanner.nextInt();
            int b_6 = scanner.nextInt();
                //b4 = 2a2 / a3 / a4
                //b6 = 3a2 / 2a3 / a4 + a2
            if (a_3 > 1){
                if (b_6 > 0){

                }
            }
        }
    }
}
